package com.yinp.proapp.module.task.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * @author :yinpeng
 * date      :2021/9/1
 * package   :com.yinp.proapp.module.task.bean
 * describe  :
 */
@Entity
public class LocaleTaskBean {
    @Id(autoincrement = true)
    private Long id;
    //是否完成
    @Property
    private boolean isFinish = false;
    //哪一天发布的任务
    @Property
    @NotNull
    private String date;
    //发布具体时间
    @Property
    private String time;
    //可能会有
    @Property
    private String title;
    //内容
    @Property
    @NotNull
    private String content;
    //经验值
    @Property
    @NotNull
    private int empirical = 1;
    //任务周期day,week,month
    @Property
    private String taskCycle;
    //上一次周期的任务
    @Property
    private String lastCycleDate;
    //绑定用户的id
    @Property
    @NotNull
    private Long userId;
    @Generated(hash = 1969877859)
    public LocaleTaskBean(Long id, boolean isFinish, @NotNull String date,
            String time, String title, @NotNull String content, int empirical,
            String taskCycle, String lastCycleDate, @NotNull Long userId) {
        this.id = id;
        this.isFinish = isFinish;
        this.date = date;
        this.time = time;
        this.title = title;
        this.content = content;
        this.empirical = empirical;
        this.taskCycle = taskCycle;
        this.lastCycleDate = lastCycleDate;
        this.userId = userId;
    }
    @Generated(hash = 364088240)
    public LocaleTaskBean() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public boolean getIsFinish() {
        return this.isFinish;
    }
    public void setIsFinish(boolean isFinish) {
        this.isFinish = isFinish;
    }
    public String getDate() {
        return this.date;
    }
    public void setDate(String date) {
        this.date = date;
    }
    public String getTime() {
        return this.time;
    }
    public void setTime(String time) {
        this.time = time;
    }
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return this.content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public int getEmpirical() {
        return this.empirical;
    }
    public void setEmpirical(int empirical) {
        this.empirical = empirical;
    }
    public String getTaskCycle() {
        return this.taskCycle;
    }
    public void setTaskCycle(String taskCycle) {
        this.taskCycle = taskCycle;
    }
    public String getLastCycleDate() {
        return this.lastCycleDate;
    }
    public void setLastCycleDate(String lastCycleDate) {
        this.lastCycleDate = lastCycleDate;
    }
    public Long getUserId() {
        return this.userId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }
   
}
